@echo off
rem !/bin/bash

set javaparam=
set port=5805
set prgpath=%~dp0

cd %prgpath%

if "%1" NEQ "" (set port=%1)

if exist debug (set javaparam="-agentlib:jdwp=transport=dt_socket,address=%port%,server=y,suspend=n") else (if exist debug_suspended (set javaparam="-agentlib:jdwp=transport=dt_socket,address=$port,server=y,suspend=y"))

set pathSeparator=";"

java %javaparam% -enableassertions -XX:+UseTLAB -XX:+UseG1GC -Xmx512m -Xms64m -Xss1m -XX:MaxGCPauseMillis=200 -XX:+PrintGCDetails -Xloggc:.gc.log -XX:+PrintClassHistogram -Dfile.encoding=UTF-8 mdt.program.Displayer

@echo on